package ro.isdc.vms.party.domain;

import ro.isdc.vms.misc.domain.Entity;

/**
 * The configuration associated to a party.
 * 
 * @author Andrei Chirila / ISDC! Romania
 * @version 1.0.0
 * @date Jul 20, 2009
 */
public class PartyConfiguration extends Entity {

	/**
	 * Generated Serial Version UID
	 */
	private static final long serialVersionUID = -8725334112555952454L;

	public static final int DEFAULT_FLAG_OLD_AD_AFTER_DAYS = 30;

	public static final int DEFAULT_DELETE_OLD_AD_AFTER_DAYS = 60;
	  
	private long flagOldAdvertisementAfterDays = DEFAULT_FLAG_OLD_AD_AFTER_DAYS;
	private long deleteOldAdvertisementAfterDays = DEFAULT_DELETE_OLD_AD_AFTER_DAYS;
	
	private Party party;
	
	/**
	 * @return the flagOldAdvertisementAfterDays
	 */
	public long getFlagOldAdvertisementAfterDays() {
		return flagOldAdvertisementAfterDays;
	}
	
	/**
	 * @param flagOldAdvertisementAfterDays the flagOldAdvertisementAfterDays to set
	 */
	public void setFlagOldAdvertisementAfterDays(final long flagOldAdvertisementAfterDays) {
		this.flagOldAdvertisementAfterDays = flagOldAdvertisementAfterDays;
	}
	/**
	 * @return the deleteOldAdvertisementAfterDays
	 */
	public long getDeleteOldAdvertisementAfterDays() {
		return deleteOldAdvertisementAfterDays;
	}
	/**
	 * @param deleteOldAdvertisementAfterDays the deleteOldAdvertisementAfterDays to set
	 */
	public void setDeleteOldAdvertisementAfterDays(final long deleteOldAdvertisementAfterDays) {
		this.deleteOldAdvertisementAfterDays = deleteOldAdvertisementAfterDays;
	}

	/**
	 * @return the party
	 */
	public Party getParty() {
		return party;
	}

	/**
	 * @param party the party to set
	 */
	public void setParty(final Party party) {
		this.party = party;
	}
}
